<% content_for :title do %>
  <label>Feature requests</label>
<% end %>

<% content_for :subtitle do %>
  <% if params[:user_id] %>
    <%= link_to  'All feature requests', feature_requests_path %>
  <% else %>
    <%= link_to  'My requested features', user_feature_requests_path(@current_user) %>
  <% end %>
  &nbsp;|&nbsp;
  <%= link_to 'Request a new feature', new_user_feature_request_path(@current_user) %>
  <div id="progress_bar" style="display:none;">
    <%= image_tag('progress_bar.gif', :border => 0, :width => 120) %>
  </div>
<% end %>

<div id="feature_requests">
  <%= render :partial => 'list', :object => @feature_requests %>
</div>